package com.lanou3g.k12.mapper;

import com.lanou3g.k12.entity.Chapter;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ChapterMapper {
    List<Chapter> findByKeyword(String keyword);

    List<Chapter> findAll(Long cid);

    void deleteByIds(@Param("ids") Long[] ids);

    void insert(Chapter chapter);

    void updateById(@Param("id") Long id, @Param("chapter") Chapter chapter);

    void deleteById(Long id);

    Chapter findById(Long id);

    List<Long> searchByIds(Long[] ids);
}
